{"version":3,"file":"fieldspanel.bundle.map.js","names":["this","BX","Landing","UI","exports","main_core","landing_ui_panel_content","main_loader","landing_backend","landing_pageobject","landing_ui_button_sidebarbutton","landing_loc","landing_ui_form_formsettingsform","landing_ui_button_basebutton","landing_ui_field_textfield","landing_ui_panel_formsettingspanel","crm_form_client","main_core_zIndexManager","_templateObject","_templateObject2","_templateObject3","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","babelHelpers","defineProperty","getOwnPropertyDescriptors","defineProperties","_classPrivateMethodInitSpec","obj","privateSet","_checkPrivateRedeclaration","add","privateCollection","has","TypeError","_classPrivateMethodGet","receiver","fn","_setShowLock","WeakSet","_getShowLock","_setHideLock","_getHideLock","FieldsPanel","_Content","inherits","createClass","value","isEditorContext","staticCache","remember","rootWindow","PageObject","getRootWindow","viewContainer","document","body","querySelector","Type","isDomNode","window","getInstance","options","rootWindowPanel","Panel","instance","_this","undefined","classCallCheck","possibleConstructorReturn","getPrototypeOf","call","assertThisInitialized","setEventNamespace","setLayoutClass","setOverlayClass","setTitle","Loc","getMessage","onSaveClick","bind","onCancelClick","cache","Cache","MemoryCache","Dom","append","layout","getViewContainer","overlay","insertAfter","getSearchContainer","header","getCreateFieldLayout","appendFooterButton","BaseButton","text","onClick","className","attrs","title","isMultiple","get","setMultiple","mode","set","setAllowedTypes","types","getAllowedTypes","setDisabledFields","fields","getDisabledFields","setAllowedCategories","categories","getAllowedCategories","setDisabledCategories","getDisabledCategories","resetFactoriesCache","_this2","startsWith","setLoadOptions","getLoadOptions","show","_options$position","_this3","_getShowLock2","Promise","resolve","_setShowLock2","getSearchField","input","textContent","isArrayFilled","disabledFields","allowedCategories","disabledCategories","allowedTypes","isBoolean","multiple","style","position","allowedLoadOptions","loadOptions","entries","reduce","acc","_ref","_ref2","slicedToArray","includes","showLoader","load","then","hideLoader","clearSidebar","getCrmFields","_ref3","_ref4","categoryId","category","isPlainObject","isLeadEnabled","button","SidebarButton","id","CAPTION","child","onSidebarButtonClick","appendSidebarButton","filteredFieldsTree","getFilteredFieldsTree","sidebarButtons","deactivate","getLayout","hide","resetState","firstShowedButton","find","hidden","click","parentElement","prototype","enableEdit","focus","promiseResolver","setCrmFields","getOriginalCrmFields","selectedFields","values","getState","concat","toConsumableArray","getLoader","_this4","Loader","hideCreateFieldButton","showCreateFieldButton","setHideVirtual","getHideVirtual","setHideRequisites","getHideRequisites","setHideSmartDocuments","getHideSmartDocuments","_this5","Backend","action","result","setOriginalCrmFields","assign","FormSettingsPanel","FormClient","getDictionary","dictionary","setFormDictionary","getFormDictionary","setState","state","activeButton","getActive","activate","hideCreateButton","every","type","crmFields","Reflect","clearContent","form","createFieldsListForm","appendForm","searchString","String","getValue","toLowerCase","trim","_ref5","_ref6","filteredFields","FIELDS","field","name","fieldCaption","caption","isTypeAllowed","some","allowedType","entityFieldName","entity_field_name","isStringFilled","_this6","fieldsListTree","fieldOptions","items","map","disabled","onValueChange","checkbox","FormSettingsForm","Field","Checkbox","Radio","onSearchChange","firstCategory","firstCategoryButton","_this7","Text","selector","textOnly","placeholder","onChange","_this8","Tag","render","taggedTemplateLiteral","getUserFieldFactory","entityId","_this9","factory","top","preparedEntityId","DYNAMIC_ID","Factory","UserFieldFactory","moduleId","bindElement","getCreateFieldButton","onCreateFieldClick","event","_this10","preventDefault","permissions","userField","Dialogs","MessageBox","alert","currentCategoryId","menu","getMenu","open","configurator","getConfigurator","createUserField","onSave","save","setValue","getData","editFormLabel","onCancel","content","getPopup","getPopupContainer","_this11","_this12","isUserFieldEditorShowed","remove","Content","Button","Form","Crm"],"sources":["fieldspanel.bundle.js"],"mappings":"AAAAA,KAAKC,GAAKD,KAAKC,IAAM,CAAC,EACtBD,KAAKC,GAAGC,QAAUF,KAAKC,GAAGC,SAAW,CAAC,EACtCF,KAAKC,GAAGC,QAAQC,GAAKH,KAAKC,GAAGC,QAAQC,IAAM,CA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